package com.blocks.blocks;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;

import com.jme3.app.Application;
import com.jme3.asset.AssetManager;
import com.jme3.bullet.control.RigidBodyControl;
import com.jme3.material.Material;
import com.jme3.scene.Geometry;
import com.jme3.scene.Mesh;
import com.jme3.scene.Node;

public class BatteryBlock extends PowerBlock{
	private int powerLevel = 0;
	String defaultTexture = "Textures/Blocks/iphone_battery.jpeg";
	
	


	public BatteryBlock(String name, int powerLevel, Long masterId) {
		super(name, masterId);
		this.powerLevel = powerLevel;
		this.powerlimit = 3;
	}

	@Override
	public void init() {		 
		 scriptEvaluator = new ScriptEvaluator();
		 super.init();
		 scriptEvaluator.evalutate("BatteryBlock.js", this);
	}


	
	
	
	

}
